import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../views/Login.vue'
import Home from '../views/home/index.vue'

const routes = [
  {
    path: '/login',
    component: Login
  },
  {
    path:'/home',
    component: Home,
    children:[
      {
        path: '/home/index',
        component:Home
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
